import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url:'/partner/manage/getBrandProduct/'+params.pageNum+'/'+params.pageSize,
    method:'get'
  })
}

export function getBrandProduct(params) {
  return request({
    url:'/partner/manage/queryProductByBrand?brandCode='+params.brandCode,
    method:'get'
  })


}
export function getProductspes(params) {
  return request({
    url:'/partner/manage/getProductSpec?productCode='+params.productCode,
    method:'get'
  })
}
export function getUploadPriceRule(params) {
  return request({
    url:'/partner/manage/getUplodaPriceRule?productCode='+params.productCode+'&brandCode='+params.brandCode,
    method:'get'
  })
}

export function queryUploadPrice(params) {
  return request({
    url:'/partner/manage/queryUploadPrice?productCode='+params.productCode+'&brandCode='+params.brandCode,
    method:'get'
  })
}

export function getUploadFileSchame(params) {
  return request({
    url:'/partner/manage/getUploadFileSchame?productCode='+params.productCode+'&brandCode='+params.brandCode,
    method:'get'
  })
}

export function uploadPrice(params) {
  return request({
    url:'/partner/manage/uploadPrice',
    method:'POST',
    data:params,
  })
}